import request from "@/config/index.js"
// 服务人员订单列表
export function getorderListApi(data) {
  return request("/orders/query/service/mine",data,"get",false)
}
// 我发起的订单
export function getUserOrderListApi(data) {
  return request("/orders/query/mine",data,"get",false)
}

export function createOrderApi(data) {
  return request("/orders/create",data,"post",false)
}
// 重新发起支付
export function repayOrderApi(orderNo) {
  return request(`/orders/repay/${orderNo}`,null,"post",false)
}
export function orderDetialApi(orderNo) {
  return request(`/orders/detail/${orderNo}`,null,"get",false)
}
export function orderCallbackApi(orderNo) {
  return request(`/orders/callback`,null,"post",false)
}
export function orderStartApi(data) {
  return request(`/orders/service/start`,data,"post",false)
}
// 订单二维码
export function orderFinishApi(data) {
  return request(`/orders/service/finish`,data,"post",false)
}
// 订单二维码
export function orderQrcodeApi(data) {
  return request(`/orders/list/qrs/${data}`,null,"get",false)
}
//根据二维码查订单详情
export function qrcodeDetailApi(data) {
  return request(`/orders/detail/qr/${data}`,null,"get",false)
}

//订单退款
export function orderRefundApi(data) {
  return request(`/orders/refund/now/temp`,data,"post",false)
}
// 核销订单
export function orderCheckApi(data) {
  return request(`/orders/service/check/qr/${data}`,null,"post",false)
}
// 投拆
export function complaintApi(data) {
  return request(`/complaint/submit`,data,"post",false)
}



